package com.sinven.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * NideshopCategory entity. @author MyEclipse Persistence Tools
 */
/**
 * 李志伟
 * 反向生成
 */
@Entity
@Table(name = "nideshop_category", catalog = "csf")
public class Category implements java.io.Serializable {

    // Fields

    private Integer id;
    private String name;
    private String frontDesc;
    private String iconUrl;
    private String wapBannerUrl;
    private String frontName;

    // Constructors

    /** default constructor */
    public Category() {
    }

    /** minimal constructor */
    public Category(String name) {
        this.name = name;
    }

    /** full constructor */
    public Category(String name, String frontDesc,
                            String iconUrl, String wapBannerUrl,
                            String frontName) {
        this.name = name;
        this.frontDesc = frontDesc;
        this.iconUrl = iconUrl;
        this.wapBannerUrl = wapBannerUrl;
        this.frontName = frontName;
    }

    // Property accessors
    @Id
    @GeneratedValue
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "name", nullable = false, length = 90)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "front_desc")
    public String getFrontDesc() {
        return this.frontDesc;
    }

    public void setFrontDesc(String frontDesc) {
        this.frontDesc = frontDesc;
    }

    @Column(name = "icon_url")
    public String getIconUrl() {
        return this.iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    @Column(name = "wap_banner_url")
    public String getWapBannerUrl() {
        return this.wapBannerUrl;
    }

    public void setWapBannerUrl(String wapBannerUrl) {
        this.wapBannerUrl = wapBannerUrl;
    }

    @Column(name = "front_name")
    public String getFrontName() {
        return this.frontName;
    }

    public void setFrontName(String frontName) {
        this.frontName = frontName;
    }

}